package com.liyao.windowtest4.service.impl;

import com.liyao.windowtest4.dao.loginDao;
import com.liyao.windowtest4.pojo.DataRow;
import com.liyao.windowtest4.pojo.loginUser;
import com.liyao.windowtest4.service.loginService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @program: windowtest4
 * @description:
 * @author: liu yan
 * @create: 2024-10-19 17:53
 */
@Service
public class loginServiceImpl implements loginService {
    @Resource
    loginDao dao;
    @Override
    public void getUserMes(String username, String password) {
        loginUser user=dao.getUserMes(username);
        System.out.println(user.getId());
        System.out.println(user.getUsername());
        System.out.println(user.getStatus());
        System.out.println(user.getRole());
    }

    @Override
    public void insertDB(DataRow newData,String tableName) {
        dao.insertDB(newData,tableName);
    }
}
